



var $header_pdemand  = $('.site-header .header-pdemand');
//header-scroll  发布需求按钮
$header_pdemand.click(function(e){
	var top = $('.home-pdemand').offset().top - $('.site-header').height() - 50;
	$('body,html').animate({ scrollTop: top }, 500);
	e.stopPropagation();
});









//focus  border-color
indexInput('.home-main input');
function indexInput(sel){
	var $input = $(sel);
	$input.focusin(function(){
		$(this).parent().css('border-color','#00a0e9');
		$(this).parent().addClass('active');
	});
	$input.focusout(function(){
		$(this).parent().css('border-color','');
		$(this).parent().removeClass('active');
	});
}

$('.home-pdemand input').keydown(function(){
	$(this).parent().find('.tink').css('display','none');
});




// 成功案列
$('.home-caselist .case-btn').on('click',function(){
	var _this = $(this);
	$('.home-caselist .item-mode').css('display','none');
	_this.closest('.case-item').find('.item-mode').fadeIn();
});
$('.home-caselist .case-item').on('click',function(e){
	e.stopPropagation();
});
$(document).on('click',function(){
	$('.home-caselist .item-mode').fadeOut();
});
$(window).on('scroll',function(){
	$('.home-caselist .item-mode').fadeOut();
});




// 热门看点
//$('.home-hotlist .hot-right .hot-title').on('mouseover',function(){
//	var _this = $(this);
//	_this.closest('.hot-text').addClass('active');
//});
//$('.home-hotlist .hot-right .hot-title').on('mouseout',function(){
//	var _this = $(this);
//	_this.closest('.hot-text').removeClass('active');
//});
//$('.home-hotlist .hot-left .img-wrapper,.hot-title').on('mouseover',function(){
//	var _this = $(this);
//	_this.closest('.hot-left').addClass('active');
//});
//$('.home-hotlist .hot-left .img-wrapper,.hot-title').on('mouseout',function(){
//	var _this = $(this);
//	_this.closest('.hot-left').removeClass('active');
//});





// 滚动出发动画
new WOW().init();
var win_height = $(window).height()/3;
var linkListLeft = new WOW({
	boxClass:'link-left',
	animateClass:'animated fadeInLeft',
	offset: win_height,          
	mobile:true,       
	live:false  
});
var linkListcenter = new WOW({
	boxClass:'link-center',
	animateClass:'animated fadeIn',
	offset: win_height,          
	mobile:true,       
	live:true  
});
var linkListRight = new WOW({
	boxClass:'link-right',
	animateClass:'animated fadeInRight',
	offset: win_height,          
	mobile:true,       
	live:true  
});
linkListLeft.init();
linkListcenter.init();
linkListRight.init();
	
	
	
	


	









